<template>
  <div id="app">
    <!-- 以下代码有问题： -->
    <!-- <keep-alive>
      <router-view />
    </keep-alive> -->

    <keep-alive>
      <router-view v-if="$route.meta.isKeepLive" />
    </keep-alive>

    <router-view v-if="!$route.meta.isKeepLive" />
  </div>
</template>

<style lang="less" scoped></style>
